package org.aristotle.user.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel("权限")
@TableName("tb_permission")
public class Permission {

    @ApiModelProperty("权限id")
    @TableId(value = "id", type = IdType.AUTO)
    @JSONField(name = "id")
    private java.lang.Long id;

    @ApiModelProperty("权限名")
    @JSONField(name = "name")
    private String name;

    @ApiModelProperty("权限标识符")
    @JSONField(name = "identifier")
    private String identifier;

    @ApiModelProperty("对应接口")
    @JSONField(name = "url")
    private String url;

    @ApiModelProperty("请求方式")
    @JSONField(name = "method")
    private String method;

    @ApiModelProperty("权限描述")
    @JSONField(name = "info")
    private String info;

    @ApiModelProperty("创建时间")
    @JSONField(name = "createTime",format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private java.util.Date createTime;

    @ApiModelProperty("修改时间")
    @JSONField(name = "updateTime",format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private java.util.Date updateTime;



}
